/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hhx.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.hhx.entity.HhxInvest;
import com.thinkgem.jeesite.modules.hhx.dao.HhxInvestDao;

/**
 * 单表生成Service
 * @author zmy
 * @version 2019-04-16
 */
@Service
@Transactional(readOnly = true)
public class HhxInvestService extends CrudService<HhxInvestDao, HhxInvest> {
	
	@Autowired
	private HhxInvestDao hhxInvestDao;

	public HhxInvest get(String id) {
		return super.get(id);
	}
	
	public List<HhxInvest> findList(HhxInvest hhxInvest) {
		return super.findList(hhxInvest);
	}
	
	public Page<HhxInvest> findPage(Page<HhxInvest> page, HhxInvest hhxInvest) {
		return super.findPage(page, hhxInvest);
	}
	
	@Transactional(readOnly = false)
	public void save(HhxInvest hhxInvest) {
		super.save(hhxInvest);
	}
	
	@Transactional(readOnly = false)
	public void delete(HhxInvest hhxInvest) {
		super.delete(hhxInvest);
	}

	@Transactional(readOnly = false)
	public int insertInvest(String id, String userid, String category, String description, String amt, String tel,
			String company, String contactname) {
		// TODO Auto-generated method stub
		return hhxInvestDao.insertInvest(id,userid,category,description,amt,tel,company,contactname);
	}
	
}